.dashboard-container {
  background: #f5f7fa;
  min-height: calc(100vh - 64px);
  padding: 0;

  h2 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
  }

  // 统计卡片样式
  .stat-card {
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;

    .ant-card-body {
      padding: 16px 20px;
    }

    .ant-statistic-title {
      font-size: 13px;
      color: #8c8c8c;
      margin-bottom: 8px;
      font-weight: 500;
    }

    .ant-statistic-content {
      display: flex;
      align-items: center;
      gap: 8px;

      .ant-statistic-content-prefix {
        font-size: 20px;
        opacity: 0.9;
      }

      .ant-statistic-content-value {
        font-weight: 600;
        letter-spacing: -0.5px;
        font-size: 24px;
      }
    }

    &:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      transform: translateY(-2px);
    }

    .stat-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #f0f0f0;

      .footer-label {
        font-size: 12px;
        color: #8c8c8c;
      }

      .footer-value {
        font-size: 13px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;

        &.increase {
          color: #52c41a;
        }

        &.decrease {
          color: #ff4d4f;
        }

        .footer-icon {
          font-size: 12px;
        }
      }
    }
  }

  // 卡片通用样式
  .ant-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;

    &:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .ant-card-head {
      border-bottom: 1px solid #f5f5f5;
      padding: 16px 24px;

      .ant-card-head-title {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
      }

      .ant-card-extra {
        a {
          color: #1890ff;
          font-size: 14px;
          transition: all 0.3s;

          &:hover {
            color: #40a9ff;
          }
        }
      }
    }

    .ant-card-body {
      padding: 24px;
    }
  }

  // 响应式间距
  .ant-row {
    &:not(:first-child) {
      margin-top: 16px;
    }
  }

  // 左右列高度对齐
  .left-column,
  .right-column {
    display: flex;
    flex-direction: column;
  }

  .right-column {
    .quick-entry-card,
    .pie-chart-card {
      flex: 1;
      display: flex;
      flex-direction: column;

      .ant-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
      }
    }
  }

  // 确保表格卡片占满高度
  .data-table-card {
    height: 100%;
    display: flex;
    flex-direction: column;

    .ant-card-body {
      flex: 1;
    }
  }

  // 进度条样式
  .progress-item {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);

    .progress-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 14px;

      .progress-value {
        font-weight: 600;
        color: #1890ff;
      }
    }
  }

  // 排行榜样式
  .rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;

    .rank-number {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      font-size: 18px;
      font-weight: bold;
      color: #fff;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

      &.rank-1 {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
      }

      &.rank-2 {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
      }

      &.rank-3 {
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
      }
    }
  }

  // 响应式调整
  @media (max-width: 768px) {
    padding: 12px;

    .stat-card .ant-card-body {
      padding: 16px;
    }

    .ant-card .ant-card-body {
      padding: 16px;
    }
  }

  @media (max-width: 576px) {
    padding: 8px;

    .ant-row {
      &:not(:first-child) {
        margin-top: 12px;
      }
    }
  }
}
